// 调用后端接口地址
import { API_CONFIG } from "../config/index.js";
import request from '../api/index.js'

export const loginHandler = (username, password) => {
    return request(API_CONFIG.loginApi, {username, password}, "post", 2000)
}
export const logoutHandler = () => {
    return request(API_CONFIG.logoutApi, {}, "get", 2000)
}